import { configureStore } from '@reduxjs/toolkit'
import banner from './slices/bannerSlice'
import doctor from './slices/doctorSlice'

const store = configureStore({
    reducer: {
        banner, doctor
    }
})
export default store
// 获取disptach的类型
export type AppDispatch  = typeof store.dispatch
// redux状态数据对象类型
export type RootState = ReturnType<typeof store.getState>